﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateNewAuthority.aspx.cs"
    Inherits="TrainingWorkshop.MVPWebsite.Authority.Views.CreateNewAuthority" Title="CreateNewAuthority"
    MasterPageFile="~/Shared/DefaultMaster.master" %>

<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <h1>
        Create New Authority</h1>
    <asp:Panel ID="Panel1" runat="server" GroupingText="Authority" BorderColor="White">
        <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    Authority Name
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108" colspan="0" style="height: 25px">
                    <asp:TextBox ID="txtAuthorityName" runat="server"></asp:TextBox>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAuthorityName"
                        ErrorMessage="AuthorityName can't be empty!" Display="Static" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="left" bgcolor="White" valign="middle" width="100" colspan="0" style="height: 25px">
                    Level
                </td>
                <td align="left" bgcolor="White" valign="middle" width="108" colspan="0" style="height: 25px">
                    <asp:DropDownList ID="ddlLevel" runat="server">
                    </asp:DropDownList>
                </td>
                <td align="center" bgcolor="White" valign="middle" width="180" colspan="0" style="height: 25px">
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ddlLevel"
                        ErrorMessage="LevelName can't be empty!" Font-Bold="false" ForeColor="Red" Operator="NotEqual"
                        ValueToCompare="0"></asp:CompareValidator>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <table border="0" cellpadding="0" cellspacing="0" bgcolor="White">
            <tr>
                <td align="center" bgcolor="White" valign="middle" width="120" colspan="0" style="height: 25px">
                    <asp:Button ID="NewButton" runat="server" Text="    Create New" OnClick="NewButton_Click"
                        Style="background-color: Transparent; background-image: url(../images/add.jpg);
                        background-position: left center; background-repeat: no-repeat" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
